package it.koutifaris.travianmap.command;

import android.view.MenuItem;
import android.view.MenuItem.OnMenuItemClickListener;

public class CommandOnMenuItemClickListener implements OnMenuItemClickListener {

	private final Command command;

	public CommandOnMenuItemClickListener(Command command) {
		this.command = command;
	}

	@Override
	public boolean onMenuItemClick(MenuItem item) {
		command.execute();
		return true;
	}

}
